package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    public void save(EmployeeDTO employeeDTO);

    /**
     * @description:分页查询方法
     * @return: com.sky.result.PageResult
     * @author: 梦龙
     * @time: 2023/11/26 16:10
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    void startOrStop(Integer status, Long id);

    /**
     * @description:根据id查询员工
     * @return: com.sky.entity.Employee
     * @author: 梦龙
     * @time: 2023/11/26 20:51
     */
    Employee getById(Long id);

    /**
     * @description:编辑员工信息
     * @return: void
     * @author: 梦龙
     * @time: 2023/11/26 21:06
     */
    void update(EmployeeDTO employeeDTO);
}
